/*
 * @Author: your name
 * @Date: 2020-12-03 10:31:53
 * @LastEditTime: 2020-12-09 22:24:16
 * @LastEditors: kuangw
 * @Description: In User Settings Edit
 * @FilePath: \react-music\src\App.jsx
 */


import React from 'react';
import { BrowserRouter as Router, Link, Route } from 'react-router-dom';

import {Home,Profile,Find} from './components/router'

class App extends React.Component {


  render(){

    return (
      <div>
        <h1>我是根，所有组件的内容</h1>
        <Router>
          <div className="nav">
            <Link to="/">首页</Link>
            <Link to="/profile">个人中心</Link>
            <Link to="/find">发现</Link>
          </div>
          <Route path='/'  component={Home}></Route>
          <Route path='/profile' component={Profile}></Route>
          <Route path='/find' component={Find}></Route>
  
  
        </Router>
      </div>
    )
  }

}


export default App
